package org.dey.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * 会员
 */
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_member")
public class Member implements Serializable{
    private static final long serialVersionUID = 7887791425766545237L;
    @TableId(value ="ID",type = IdType.AUTO)
    private Integer id;//主键
    private String fileNumber;//档案号
    private String name;//姓名
    private Integer age;//年龄
    private String sex;//性别
    private String idCard;//身份证号
    private String phoneNumber;//手机号
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date regTime;//注册时间
    private String password;//登录密码
    private String email;//邮箱
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;//出生日期
    private String remark;//备注
    private Integer healthmanager;//健康管理师
    @TableField(exist = false)
    private String healthmanagername;//健康管理师名字
    private String nation;//民族
    private String maritalstatue;//婚姻状态
    private String vocation;//职业
    private String educational;//文化程度
    private Float height;//身高
    private Float weight;//体重
    private Integer relaxation;//舒张压
    private Integer flexible;//收缩压
    private Integer breathnums;//呼吸频次
    private Float temperature;//体温
    private Float waistline;//腰围
    private Float hipline;//臀围
    private Float bmi;//BMI(身体质量指数)
    private Integer oximeter;//血氧饱和度
    private String pasthistory;//既往史
    private String familyhistory;//家族史
    private String allergichistory;//过敏史
    private String illhistory;//病史
    private String chronichistory;//慢性病

    //人群分类编号
    @TableField(exist = false)
    private int rqflid;

    //人群分类所选模版分类id
    @TableField(exist = false)
    private int rqflitid;

    public Member(String fileNumber, String name, String phoneNumber) {
        this.fileNumber = fileNumber;
        this.name = name;
        this.phoneNumber = phoneNumber;
    }
}
